<?php
	if (isset($_POST["goto"])){
		if (!file_exists($_POST["query"])){
			oyster_log("ERROR", (string)$language->errors->value_4, "Oyster input.include");
			$head->_template_assign("ERROR", (string)$language->errors->value_4);
		}
		
		$included = true;
		$ordner = $_POST["query"];
		include("System/Kernel/Includes/index.include.php");
	} elseif (isset($_POST["mkdir"])){
		if (!file_exists($_GET["dir"].$_POST["query"])){
			if (mkdir($_GET["dir"].$_POST["query"])) {
				chmod($_GET["dir"].$_POST["query"],0777);
				$included = true;
				$ordner = $_GET["dir"].$_POST["query"];
				include("System/Kernel/Includes/index.include.php");
				$head->_template_assign("STATUS", (string)$language->stati->value_5);
			} else {
				oyster_log("ERROR", (string)$language->errors->value_14, "Oyster input.include");
				$head->_template_assign("ERROR", (string)$language->errors->value_14);
			}
		} else {
			oyster_log("ERROR", (string)$language->log_msgs->value_7, "Oyster input.include");
			$included = true;
			$ordner = $_GET["dir"].$_POST["query"];
			include("System/Kernel/Includes/index.include.php");
			$head->_template_assign("ERROR", sprintf((string)$language->errors->value_15, $_POST["query"]));
		}
		if (ALLOW_EASY_MOVE == true){
			build_foldersDB();
		}
	} elseif (isset($_POST["quicknote"])){
		if (file_put_contents(don3_plus_one("QuickNote.txt", "./"), $_POST["query"])){
			$head->_template_assign("STATUS", (string)$language->stati->value_12);
		} else {
			$head->_template_assign("ERROR", (string)$language->errors->value_27);
		}
		include("System/Kernel/Includes/index.include.php");
	} else {
		$ordner = $_GET["path"];
		$included = true;
		include("System/Kernel/Includes/index.include.php");
	}
?>